package org.example;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;

public class test {
    public static void main(String[] args) {
        int[] arr = {5,2,4,6,1,3,8,7,9,0};
        int[] l = Arrays.copyOfRange(arr, 1, 1);
        System.out.println(Arrays.toString(l));
        arr[2] = 10;
        System.out.println(Arrays.toString(l));

    }

}
